stylecontext: Use the common approach for priate pointers
authorBenjamin Otte <otte@redhat.com>
Wed, 9 Feb 2011 13:40:04 +0000 (14:40 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 11 Feb 2011 22:21:11 +0000 (23:21 +0100)
Has two advantages:
1) consistency
2) "print *context->priv" actually works in gdb

gtk/gtkstylecontext.c
gtk/gtkstylecontext.h

index f005eb15fdf24ca0e13d5d3862a852ca70c718f9..c64ada7a6b86ed1994d7de4779adabf013c4f706 100644 (file)
  * </refsect2>
  */
 
-typedef struct GtkStyleContextPrivate GtkStyleContextPrivate;
 typedef struct GtkStyleProviderData GtkStyleProviderData;
 typedef struct GtkStyleInfo GtkStyleInfo;
 typedef struct GtkRegion GtkRegion;
@@ -468,7 +467,7 @@ struct AnimationInfo
   GArray *rectangles;
 };
 
-struct GtkStyleContextPrivate
+struct _GtkStyleContextPrivate
 {
   GdkScreen *screen;
 
index 80d34884806d4d6496948a15238b70e0c55721da..2fad447bd54eb26d86096403f1c15ce1fe35604a 100644 (file)
@@ -40,11 +40,12 @@ G_BEGIN_DECLS
 
 typedef struct _GtkStyleContext GtkStyleContext;
 typedef struct _GtkStyleContextClass GtkStyleContextClass;
+typedef struct _GtkStyleContextPrivate GtkStyleContextPrivate;
 
 struct _GtkStyleContext
 {
   GObject parent_object;
-  gpointer priv;
+  GtkStyleContextPrivate *priv;
 };
 
 struct _GtkStyleContextClass